import maya.cmds as mc
#import Modular_facial_rig.mouth_build.mouth_temple
#reload(Modular_facial_rig.mouth_build.mouth_temple)
#
#import Modular_facial_rig.head_stretch_build.head_stretcj_setting
#reload(Modular_facial_rig.head_stretch_build.head_stretcj_setting)

import LZ_public_command.LZ_UI
reload(LZ_public_command.LZ_UI)

import motionMacht_facial.createTemple_loc as createTemple_loc
reload(createTemple_loc)

import motionMacht_facial.createControlSettings as createControlSettings
reload(createControlSettings)

#import Modular_facial_rig.eyeBrow_build.eyeBrow_setting
#reload(Modular_facial_rig.eyeBrow_build.eyeBrow_setting)
#
#import Modular_facial_rig.nose_build.nose_setting_builde
#reload(Modular_facial_rig.nose_build.nose_setting_builde)
#
#import Modular_facial_rig.eye_setting.createEyeSetting
#reload(Modular_facial_rig.eye_setting.createEyeSetting)
#
#import Modular_facial_rig.singgle_setting_build.singgle_setting_build
#reload(Modular_facial_rig.singgle_setting_build.singgle_setting_build)
#
'''

Modular_facial_rig.mouth_build.mouth_temple.mouth_temple_build,
                    
Modular_facial_rig.head_stretch_build.head_stretcj_setting.head_stretch_setting,
Modular_facial_rig.eyeBrow_build.eyeBrow_setting.eyeBrow_setting,
Modular_facial_rig.nose_build.nose_setting_builde.nose_setting_build,
Modular_facial_rig.eye_setting.createEyeSetting.createEyeSetting,
Modular_facial_rig.singgle_setting_build.singgle_setting_build.singgle_setting_build

'''
class facial_UI(LZ_public_command.LZ_UI.LZ_UI,
                createTemple_loc.createTemple_motionMatch_facial,
                createControlSettings.createControl_settings

                    ):
    def __init__(self):
        #Modular_facial_rig.mouth_build.mouth_temple.mouth_temple_build.__init__(self)
        pass
    def Modular_facial_Win(self):
        motionMatch_facial_UI = 'motionMatch_facial_UI'
        if mc.window(motionMatch_facial_UI,ex = True):
            mc.deleteUI(motionMatch_facial_UI)
            
        mc.window(motionMatch_facial_UI,widthHeight=(350, 400),t='motionMatch_facial_UI',menuBar = True,rtf=True,s=True)
     
        
        
        main = mc.columnLayout('mdlar_facial_Sys_main',columnAttach=('both', 5), rowSpacing=10, columnWidth=350 )
        
        mc.frameLayout( 'loadBaseModel_frameLY',label='Base_Models', borderStyle='in',collapsable=False,bgc =(0.1,0.1,0.1) ,font = 'boldLabelFont')
        
        ##
        mc.rowLayout( 'head_model_rowLY',numberOfColumns=3,columnWidth3=(100, 150,100), adjustableColumn=3, columnAlign=(1, 'right'), columnAttach=[(1, 'both', 0), (2, 'both', 0), (2, 'both', 0)])
        mc.text(  'head_model :  ')
        mc.textField( 'head_model_textField',text='' )
        mc.button('load_headModel' ,c = lambda *args:self.loadTextField( 'head_model_textField' ) )
        mc.setParent('loadBaseModel_frameLY')
        
        ##
        mc.rowLayout( 'lips_prefix_rowLY',numberOfColumns=3,columnWidth3=(100, 150,100), adjustableColumn=3, columnAlign=(1, 'right'), columnAttach=[(1, 'both', 0), (2, 'both', 0), (2, 'both', 0)])
        mc.text(  'charator_prefix  :  ')
        mc.textField( 'charator_prefix_textField',text='' )
        mc.setParent('loadBaseModel_frameLY')

        
        '''
        =========================================================
        ||                                                     ||
        ||                                                     ||
        ||                                                     ||
        ||                                                     ||
        =========================================================
        
        
        
        '''
        mc.setParent( main )
        mc.frameLayout( 'matchMotionFacial_temloc_frameLY',collapse = 1,label='mctch_motion_facial_settings', borderStyle='in',collapsable=False,bgc =(0.1,0.1,0.1) ,font = 'boldLabelFont')
        mc.separator( style='none' )

        
        mc.button('  import facial temple   ',h=35,bgc=(0.75,0.2,0.5), c = lambda *args:self.createMothTemple())
        
        
        mc.separator( style='in' )
        mc.button('  build head stretch  ',h=30,bgc=(0.75,0.2,0.5), c = lambda *args:self.createSetting_matchMotion())
        
        
        
        mc.showWindow()
        
        
        
        
        
        
        
        
        
        
    def createSetting_matchMotion(self):
        self.createMouthControls()
        self.create_motionMatch_bridge()